package com.iphanta.community.following.traffic;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.iphanta.community.following.traffic.vo.ResInfo;
import com.iphanta.community.tags.traffic.vo.TagInfo;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 2/15/22 3:24 PM
 */
@Data
@ToString
public class PublishDynamicRequest {

    /**
     * 媒体类型: image | video，必填
     */
    @NotNull
    private String mediaType;

    /**
     * 资源列表, 可为json字符串，必填
     */
    @NotBlank
    private List<ResInfo> resURIs;

    /**
     * 动态正文，必填
     */
    private String context;

    /**
     * 标签，必填
     */
    private List<TagInfo> tags;

    private String activityId;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone="GMT+8")
    private Date createTime;

}
